package lerry.nape.utils;

import nape.geom.Vec2List;
import nape.shape.Shape;

/**
 * ...
 * @author ...lxq
 */
class NapeUtils{

	public function new() {
		
	}
	
	public static function getVertices(target:Shape):Vec2List {
		if(target.isCircle()) {
			throw "Circle has no vertices!And shape must be Polygon.";
			return null;
		}
		return target.castPolygon.worldVerts;
	}
}